package top.forgirl.util;

import java.util.Random;
import java.util.UUID;

public class StringGenerateUtil {

    public static String generateUUID() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }

    public static String generateCredential(int len) {
        return UUID.randomUUID().toString().replaceAll("-", "").substring(0, len);
    }

    public static String generate4Did(){
        int i = new Random().nextInt(10000);
        return String.valueOf(i);
    }

}
